<!--新增项目-->
<template>
  <div>
    <component
      v-bind:is="currentTabComponent"
      :title="$route.name === 'addProject' ? '新增项目' : '编辑项目'"
      :showBackBtn="true"
    >
      <div slot="content">
        <add-form></add-form>
      </div>
    </component>
  </div>
</template>

<script>
export default {
  name: "companyInfo",
  components: {
    addForm: () => import("@/components/projectList/form"),
    contentWrapper: () => import("@/components/contentWrapper/index"),
    tab: () => import("@/components/contentWrapper/pcIndex")
  },
  computed: {
    currentTabComponent() {
      if (this.$store.state.isPC) {
        return "tab";
      } else {
        return "contentWrapper";
      }
    }
  }
};
</script>
